package com.ruoyi.deeplearn.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 模型对象 deep_model_version
 *
 * @author rww
 * @date 2024-09-09
 */
public class DeepModelVersion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模块ID */
    private Long id;

    /** 版本 */
    @Excel(name = "版本")
    private Integer version;

    /** 业务模块id */
    @Excel(name = "业务模块id")
    private Long moduleId;

    /** 模块网络结构id */
    @Excel(name = "模块网络结构id")
    private Long moduleNetId;
    private String moduleNetName;

    /** 模型id */
    @Excel(name = "模型id")
    private Long modelId;


    /** 发布id */
    private Long deployId;
    private Integer deployStatus; /** 发布状态 */
    public static int deployStatus_not_deployed = 0;
    public static int deployStatus_deploying = 10;//部署中
    public static int deployStatus_deployed = 20;

    private Long trainId;
    private Integer trainStatus;
    public static int trainStatus_not_trained = 0;
    public static int trainStatus_training = 10;//训练中
    public static int trainStatus_trained = 20;


    private String param;//配置参数，eg：分割模型配置
    private String jpgBucket;//
    private String jpgObjectName;//


    ///////////////////////////


    public String getJpgBucket() {
        return jpgBucket;
    }

    public void setJpgBucket(String jpgBucket) {
        this.jpgBucket = jpgBucket;
    }

    public String getJpgObjectName() {
        return jpgObjectName;
    }

    public void setJpgObjectName(String jpgObjectName) {
        this.jpgObjectName = jpgObjectName;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public Integer getTrainStatus() {
        return trainStatus;
    }

    public void setTrainStatus(Integer trainStatus) {
        this.trainStatus = trainStatus;
    }

    public Long getTrainId() {
        return trainId;
    }

    public void setTrainId(Long trainId) {
        this.trainId = trainId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setVersion(Integer version)
    {
        this.version = version;
    }

    public Integer getVersion()
    {
        return version;
    }
    public void setModuleId(Long moduleId)
    {
        this.moduleId = moduleId;
    }

    public Long getModuleId()
    {
        return moduleId;
    }
    public void setModuleNetId(Long moduleNetId)
    {
        this.moduleNetId = moduleNetId;
    }

    public Long getModuleNetId()
    {
        return moduleNetId;
    }
    public void setModelId(Long modelId)
    {
        this.modelId = modelId;
    }

    public Long getModelId()
    {
        return modelId;
    }
    public void setDeployStatus(Integer deployStatus)
    {
        this.deployStatus = deployStatus;
    }

    public Integer getDeployStatus()
    {
        return deployStatus;
    }
    public void setDeployId(Long deployId)
    {
        this.deployId = deployId;
    }

    public Long getDeployId()
    {
        return deployId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("version", getVersion())
            .append("moduleId", getModuleId())
            .append("moduleNetId", getModuleNetId())
            .append("modelId", getModelId())
            .append("deployStatus", getDeployStatus())
            .append("deployId", getDeployId())
            .toString();
    }
}
